﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameLibrary.Model;

namespace GameDesigner.Source.Widgets
{
    class ActiveGame
    {
        private static GameDef _Game;

        public delegate void GameChangedHandler(GameDef game);
        public static event GameChangedHandler GameChangedEvent;

        public static GameDef Game
        {
            get
            {
                return _Game;
            }
            set
            {
                _Game = value;
                if (GameChangedEvent != null)
                {
                    GameChangedEvent(value);
                }
            }
        }
    }
}
